﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F19 RID: 3865
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicDoorInfo : IMessage<RogueMagicDoorInfo>, IMessage, IEquatable<RogueMagicDoorInfo>, IDeepCloneable<RogueMagicDoorInfo>, IBufferMessage
	{
		// Token: 0x1700311F RID: 12575
		// (get) Token: 0x0600AD6F RID: 44399 RVA: 0x001D55FD File Offset: 0x001D37FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicDoorInfo> Parser
		{
			get
			{
				return RogueMagicDoorInfo._parser;
			}
		}

		// Token: 0x17003120 RID: 12576
		// (get) Token: 0x0600AD70 RID: 44400 RVA: 0x001D5604 File Offset: 0x001D3804
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicDoorInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003121 RID: 12577
		// (get) Token: 0x0600AD71 RID: 44401 RVA: 0x001D5616 File Offset: 0x001D3816
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicDoorInfo.Descriptor;
			}
		}

		// Token: 0x0600AD72 RID: 44402 RVA: 0x001D561D File Offset: 0x001D381D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicDoorInfo()
		{
		}

		// Token: 0x0600AD73 RID: 44403 RVA: 0x001D5625 File Offset: 0x001D3825
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicDoorInfo(RogueMagicDoorInfo other) : this()
		{
			this.enterNextLayer_ = other.enterNextLayer_;
			this.rogueDoorNextRoomType_ = other.rogueDoorNextRoomType_;
			this.bPFBJKCFLKH_ = other.bPFBJKCFLKH_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600AD74 RID: 44404 RVA: 0x001D5662 File Offset: 0x001D3862
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicDoorInfo Clone()
		{
			return new RogueMagicDoorInfo(this);
		}

		// Token: 0x17003122 RID: 12578
		// (get) Token: 0x0600AD75 RID: 44405 RVA: 0x001D566A File Offset: 0x001D386A
		// (set) Token: 0x0600AD76 RID: 44406 RVA: 0x001D5672 File Offset: 0x001D3872
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool EnterNextLayer
		{
			get
			{
				return this.enterNextLayer_;
			}
			set
			{
				this.enterNextLayer_ = value;
			}
		}

		// Token: 0x17003123 RID: 12579
		// (get) Token: 0x0600AD77 RID: 44407 RVA: 0x001D567B File Offset: 0x001D387B
		// (set) Token: 0x0600AD78 RID: 44408 RVA: 0x001D5683 File Offset: 0x001D3883
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RogueDoorNextRoomType
		{
			get
			{
				return this.rogueDoorNextRoomType_;
			}
			set
			{
				this.rogueDoorNextRoomType_ = value;
			}
		}

		// Token: 0x17003124 RID: 12580
		// (get) Token: 0x0600AD79 RID: 44409 RVA: 0x001D568C File Offset: 0x001D388C
		// (set) Token: 0x0600AD7A RID: 44410 RVA: 0x001D5694 File Offset: 0x001D3894
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BPFBJKCFLKH
		{
			get
			{
				return this.bPFBJKCFLKH_;
			}
			set
			{
				this.bPFBJKCFLKH_ = value;
			}
		}

		// Token: 0x0600AD7B RID: 44411 RVA: 0x001D569D File Offset: 0x001D389D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicDoorInfo);
		}

		// Token: 0x0600AD7C RID: 44412 RVA: 0x001D56AC File Offset: 0x001D38AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicDoorInfo other)
		{
			return other != null && (other == this || (this.EnterNextLayer == other.EnterNextLayer && this.RogueDoorNextRoomType == other.RogueDoorNextRoomType && this.BPFBJKCFLKH == other.BPFBJKCFLKH && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600AD7D RID: 44413 RVA: 0x001D5708 File Offset: 0x001D3908
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.EnterNextLayer)
			{
				num ^= this.EnterNextLayer.GetHashCode();
			}
			if (this.RogueDoorNextRoomType != 0U)
			{
				num ^= this.RogueDoorNextRoomType.GetHashCode();
			}
			if (this.BPFBJKCFLKH != 0U)
			{
				num ^= this.BPFBJKCFLKH.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600AD7E RID: 44414 RVA: 0x001D5779 File Offset: 0x001D3979
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600AD7F RID: 44415 RVA: 0x001D5781 File Offset: 0x001D3981
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600AD80 RID: 44416 RVA: 0x001D578C File Offset: 0x001D398C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.EnterNextLayer)
			{
				output.WriteRawTag(8);
				output.WriteBool(this.EnterNextLayer);
			}
			if (this.RogueDoorNextRoomType != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.RogueDoorNextRoomType);
			}
			if (this.BPFBJKCFLKH != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.BPFBJKCFLKH);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600AD81 RID: 44417 RVA: 0x001D5800 File Offset: 0x001D3A00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.EnterNextLayer)
			{
				num += 2;
			}
			if (this.RogueDoorNextRoomType != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RogueDoorNextRoomType);
			}
			if (this.BPFBJKCFLKH != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BPFBJKCFLKH);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600AD82 RID: 44418 RVA: 0x001D5864 File Offset: 0x001D3A64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicDoorInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.EnterNextLayer)
			{
				this.EnterNextLayer = other.EnterNextLayer;
			}
			if (other.RogueDoorNextRoomType != 0U)
			{
				this.RogueDoorNextRoomType = other.RogueDoorNextRoomType;
			}
			if (other.BPFBJKCFLKH != 0U)
			{
				this.BPFBJKCFLKH = other.BPFBJKCFLKH;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600AD83 RID: 44419 RVA: 0x001D58C8 File Offset: 0x001D3AC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600AD84 RID: 44420 RVA: 0x001D58D4 File Offset: 0x001D3AD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 72U)
					{
						if (num != 80U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.BPFBJKCFLKH = input.ReadUInt32();
						}
					}
					else
					{
						this.RogueDoorNextRoomType = input.ReadUInt32();
					}
				}
				else
				{
					this.EnterNextLayer = input.ReadBool();
				}
			}
		}

		// Token: 0x04004661 RID: 18017
		private static readonly MessageParser<RogueMagicDoorInfo> _parser = new MessageParser<RogueMagicDoorInfo>(() => new RogueMagicDoorInfo());

		// Token: 0x04004662 RID: 18018
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004663 RID: 18019
		public const int EnterNextLayerFieldNumber = 1;

		// Token: 0x04004664 RID: 18020
		private bool enterNextLayer_;

		// Token: 0x04004665 RID: 18021
		public const int RogueDoorNextRoomTypeFieldNumber = 9;

		// Token: 0x04004666 RID: 18022
		private uint rogueDoorNextRoomType_;

		// Token: 0x04004667 RID: 18023
		public const int BPFBJKCFLKHFieldNumber = 10;

		// Token: 0x04004668 RID: 18024
		private uint bPFBJKCFLKH_;
	}
}
